home *** CD-ROM | disk | FTP | other *** search
- #ifndef rectpie_HPP
- #define rectpie_HPP
-
- #ifndef shape_HPP
- #include "shape.hpp"
- #endif
-
- class Rectangle : public Shape {
- unsigned width, heighth;
- public:
- Rectangle(unsigned width
- = (unsigned) getmaxx()/4,
- unsigned heighth
- = (unsigned) getmaxy()/4,
- unsigned x = 0, unsigned y = 0)
- : Shape((x?x:width/2),(y?y:heighth/2))
- {
- this->width = width;
- this->heighth = heighth;
- }
- virtual void show(int xxpose = 0,
- int yxpose = 0, unsigned scale = 0);
- };
-
-
- class PieSlice : public Circle {
- unsigned startAngle, endAngle;
- public:
- PieSlice(unsigned startAngle = 30,
- unsigned endAngle = 60,
- unsigned radius
- = (unsigned) getmaxy()/8,
- unsigned x = 0, unsigned y = 0)
- : Circle(radius,x,y)
- {
- this->startAngle = startAngle;
- this->endAngle = endAngle;
- }
- virtual void show(int xxpose = 0,
- int yxpose = 0, unsigned scale = 1);
- };
-
- #endif